<?php

namespace common\models\datas;

use Yii;

/**
 * This is the model class for table "{{%web_sales_images}}".
 *
 * @property integer $id
 * @property integer $product_id
 * @property string $img_url
 * @property string $alt
 */
class WebSalesImages extends \common\components\bases\BaseModel
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%web_sales_images}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['product_id'], 'integer'],
            [['img_url', 'alt'], 'string', 'max' => 100]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('common', '自动编号'),
            'product_id' => Yii::t('common', '产品编号'),
            'img_url' => Yii::t('common', '图片地址'),
            'alt' => Yii::t('common', '图片名称'),
        ];
    }

}
